package com.siysoft.tc.admin.action;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.siysoft.tc.admin.service.IAdminLogService;
import com.siysoft.util.IMap;

/**
 * <p>Title: AdminLogController</p>
 * <p>Description:咨询管理功能</p>
 * <p>Company: dmpb</p>
 * @author    victor
 * @date       2015年11月12日
 */
@Controller
@RequestMapping(value = "/admin/log")
public class AdminLogController {
	@Autowired
	IAdminLogService logService;
	
	//文章管理
	@RequestMapping(value = "/toLog")
	public String toLog(HttpServletRequest request) throws Exception{
		IMap iMap = new IMap(request);
		List<Map<String,Object>> seekLogs = logService.seekLogs(iMap);
		request.setAttribute("logList", seekLogs);
		return "/admin/log/logList";
	}
	
	
}
